package com.study.spark.scala.chapter09

object Scala02_Exception {
  def main(args: Array[String]): Unit = {
    // TODO 异常

  }
    // 增加注解 便于java在调用Scala时明确异常

  @throws[Exception]
  def test(): Unit ={
    throw new Exception("abc")
  }
}
